package com.xbongbong.pro.enums.workrecord.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

@Getter
public enum WorkrecordTemplateEnum {

    SUMMARY("enum.workrecordTemplate.name.summary", "summary"),

    USER_NAME("enum.workrecordTemplate.name.user_name","userName"),

    SUBMITTIME("enum.workrecordTemplate.name.submittime","submitTime"),
    ;

    private String name;

    private String alias;

    WorkrecordTemplateEnum(String name, String alias) {
        this.name = name;
        this.alias = alias;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

}
